import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/login'
import Layout from '../views/layout'

Vue.use(VueRouter)

const routes = [{
        path: '/login',
        name: 'Login',
        component: Login
    },
    {
        path: '/',
        redirect: 'Login',

    },
    {
        path: '/layout',
        name: 'Layout',
        component: Layout
    },
]

const router = new VueRouter({
    routes
})

export default router